fix-hs_cmpxchg64
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Wed, 18 Oct 2023 19:50:19 +0000 (22:50 +0300)
committerIlias Tsitsimpis <iliastsi@debian.org>
Wed, 18 Oct 2023 19:50:19 +0000 (22:50 +0300)
commit97317b8add70d73ebf33a7c2866d78b2f101da7c
tree49577008a3144dbabfc57c7059112d17e2da7891
parenta2233d71b9ddf0776afea595d942cd51424f7c05
fix-hs_cmpxchg64

commit 9fa545722f9151781344446dd5501db38cb90dd1
Author: Cheng Shao <terrorjack@type.dance>
Date:   Mon Feb 27 19:11:27 2023 +0000

    ghc-prim: fix hs_cmpxchg64 function prototype

    hs_cmpxchg64 must return a StgWord64, otherwise incorrect runtime
    results of 64-bit MO_Cmpxchg will appear in 32-bit unregisterised
    builds, which go unnoticed at compile-time due to C implicit casting
    in .hc files.

Gbp-Pq: Name fix-hs_cmpxchg64
libraries/ghc-prim/cbits/atomic.c
rts/include/stg/Prim.h